
def basic_hash(string):
    sum = 0
    for i in range(len(string)):
        sum += ord(string[i])
    return sum

print(basic_hash("hello"))


def Polynomial_Rolling_Hash(string):
    sum = 0
    for i in range(len(string)):
        sum += ord(string[i]) * (i + 1)
    return sum


print(Polynomial_Rolling_Hash("hello"))


import hashtable
import student


